package org.zsk.cs.util.common.enums;

import com.baomidou.mybatisplus.core.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * <p>
 *     性别枚举
 * </p>
 *
 * @author zsk
 * @version 1.0
 * Created on 2020/4/18
 */
public enum Sex implements IEnum<Integer> {

    MALE(0,"女"),
    FEMALE(1,"男");
    /**
     * 数据库值
     */
    @JsonValue
    private int value;
    /**
     * 描述
     */
    private String desc;

    Sex(int value, String desc) {
        this.value=value;
        this.desc=desc;
    }

    @Override
    public Integer getValue() {
        return this.value;
    }

    public String getDesc(){
        return this.desc;
    }

}
